/*
 * @Author: huangpx
 * @Date: 2023-03-11 20:14:32
 * @LastEditors: huangpx
 * @LastEditTime: 2023-07-19 17:27:37
 * @Description: file content
 */
let route = [];
function renderView () {
  return { // 这时路由页面正常显示, 但这时会嵌套一层router-view; 如果把component注释掉, 页面就空了
    render: h => h('router-view')
  };
}
let child = [
  {
    path: '/weclome',
    name: '欢迎',
    children: [],
    meta: {
      isHidden: true
    },
    component: r => require.ensure([], () =>
      r(require('./play/src/welcome.vue')))
  },
  {
    path: '/pro-custom-asyn-tree-transfer',
    name: '4.0穿梭框',
    children: [],
    meta: {
      isHidden: false
    },
    component: r => require.ensure([], () =>
      r(require('./play/src/pro-custom-asyn-tree-transfer.vue')))
  },
  {
    path: '/pro-asyn-tree-transfer',
    name: '3.0穿梭框',
    children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/pro-asyn-tree-transfer.vue')))
  },
  {
    path: '/tree',
    name: '树', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree.vue')))
  },

  {
    path: '/tree-virtual',
    name: '虚拟树', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual1',
    name: '虚拟树1', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual2',
    name: '虚拟树2', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual3',
    name: '虚拟树3', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual4',
    name: '虚拟树4', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual5',
    name: '虚拟树5', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  }, {
    path: '/tree-virtual6',
    name: '虚拟树6', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual7',
    name: '虚拟树7', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual8',
    name: '虚拟树8', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual9',
    name: '虚拟树9', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual10',
    name: '虚拟树10', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/tree-virtual11',
    name: '虚拟树11', children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/tree-virtual.vue')))
  },
  {
    path: '/test',
    name: '测试',
    children: [{
      path: '/test1',
      name: '测试1',
      children: [{
        path: '/test2',
        name: '测试2',

        children: [],
        component: r => require.ensure([], () =>
          r(require('./play/src/order.vue')))
      }, {
        path: '/test3',
        name: '测试3',
        children: [],
        component: r => require.ensure([], () =>
          r(require('./play/src/order.vue')))
      }],
      component: r => require.ensure([], () =>
        r(require('./play/src/order.vue')))
    }],
    component: renderView()
  }, {
    path: '/menu-main',
    name: '顶部叶子菜单',
    children: [],
    component: r => require.ensure([], () =>
      r(require('./play/src/menu-main.vue')))
  },
  {
    path: 'http://www.baidu.com',
    name: '跳转',
    meta: {
      isHttp: true
    },
    children: []
  }];
route.push(

  {
    path: '/',
    name: '/index',
    meta: {
      keepAlive: false
    },
    component: r => require.ensure([], () =>
      r(require('./play/src/layout.vue'))),
    children: child
  });
export const children = child;
export default route;
